/*
 * @Descripttion: 
 * @Author: xiaodong
 * @Date: 2020-11-18 17:41:00
 */
const path = require("path")
module.exports = {
    entry: "./src/index.ts",
    output: {
      filename: "cloud-monitor-sdk.js",
      path:path.resolve(__dirname,'./dist'),
      library: 'CloudMonitor',
      libraryExport: "CloudMonitor",
      libraryTarget: 'umd',
    },

    resolve: {
      extensions: [".ts", ".tsx", ".js", ".json"]
    },
  
    module: {
      rules: [
        { test: /\.ts?$/, loader: "ts-loader" },
      ]
    },

    plugins: []
};